package com.huilian.iotbox.admin.service;

import com.alibaba.fastjson.JSONObject;
import com.huilian.iotbox.data.common.ServerResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface QiNiuService {

    ServerResponse fileupload(MultipartFile multipartFile, Integer type);

    ServerResponse deleteQiNiuImage(String key);

    JSONObject imgVad(String imageBase,String imgUrl, Integer type) throws IOException;

    ServerResponse uploadImage(MultipartFile multipartFile, Integer type);

    ServerResponse deleteByFileNameToFTP(String fileName);
}
